Page({
  data: {
    queryList: ["Louis Vuitton", "四叶草", "Hermès", "love手镯", "Celine", "Chloe", "购物袋", "邮差包", ""],
    enter_type: ''
  },
  onLoad: function (options) {
    var enter_type = options.enter_type
    if (enter_type) {
      this.setData({
        enter_type: enter_type
      })
    }
  },
  queryProduct(e) {
    let val = e.detail.value
    var enter_type = this.data.enter_type
    wx.navigateTo({
      url: `/pages/homepage/productList/productList?full_name=${val}&enter_type=${enter_type}`,
    })
  },
  handleQueryTag(e) {
    let val = e.target.dataset.query
    var enter_type = this.data.enter_type
    wx.navigateTo({
      url: `/pages/homepage/productList/productList?full_name=${val}&enter_type=${enter_type}`,
    })
  },
  onShow() {
    getApp().startpage(new Date().getTime())
  },
  onHide() {
    getApp().endpage(new Date().getTime())
  }
})